package com.mer.controller;

import com.mer.service.CourseService;
import com.mer.vo.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: IIPhase-project
 * @description: 课程控制层
 * @author: 张庆恒
 * @create: 2021-10-22 19:49
 **/
@RestController
@RequestMapping("/order/course")
@Api(tags = "课程详情")
public class CourseController {

    @Resource
    private CourseService courseService;

    @ApiOperation("通过课程id查询课程信息")
    @PostMapping("/queryCourse/{courseId}")
    public CommonResult queryAllCourse(@PathVariable("courseId") @RequestBody String courseId){
        return courseService.queryCourse(courseId);
    }
}
